Let's start this section by discussing
the concept of virtual machines. The simplest way to think about virtual
machines is with an example such as an IoT water consumption meter. This meter may use a straightforward
microcontroller chip to run the meter, which has its own
specific instruction set. The firmware running that meter has a few
specific functions that it must perform, including periodic uplink of meter
readings through a cell phone chip on the controller through
a network connection. No operating system is required
to run the instrument. It doesn't need a user interface or
GUI or many other features. It is a simple lightweight
embedded app which is written or compiled according to the specific
instruction set for that microcontroller. The product developer may use
a Windows 10 based workstation running an eight core Intel processor
with 64 gigabyte RAM. Their integrated development environment
contains libraries that support the microcontroller chip, including a
hardware abstraction layer support kit for that microcontroller's instruction set. Each new set of the meter's
firmware is built, which is packaged into
a virtual machine file and contains information about the
microcontroller and its instruction set. Testing the meter's firmware is as simple
as loading the virtual machine and executing it. Windows doesn't know anything about the
microcontroller, nor does it need to know. Between the hardware abstraction layer and the hypervisor they handle all
the translation of microcontroller instructions into actions
the Intel CPU needs to perform. One result of the widespread use
of virtualization is the cloud. Almost without exception,
organizational and individual users of cloud hosted
services neither know nor care about the processing hardware
hosting their cloud services. They don't need to know which instruction
sets the CPUs are executing or their total memory capacity. The responsibility of managing that
hardware has been delegated to their cloud services provider. Instead, the iron has become
just a structure, an important, critical, vital element to
complete any calculation. But it is not a major concern. This leads us to define a virtualized
environment as the set of operating system and application software. The software defined storage,
software defined networks, and software defined security and
other virtualized hardware or system functions required
by the virtual machines. A virtual machine is often used as
a sandbox, typically as part of a virtual environment of its own environments
isolated from other virtual or real environments running on the same hardware
processor and other infrastructures. This means it can be safely used to
run untrusted or unproven software. An antivirus analyst will often execute
suspicious code in a sandbox to examine the code without damaging the system. If a virtual machine is compromised,
it is usually shut down and restarted or rebuilt to protect
the underlying hardware. Virtualization is managed by a host
server running a hypervisor. The virtual machines are referred
to as guest machines. The hypervisor serves as a virtual
operating platform that executes the guest operating system for an application. The host servers are designed to run
multiple virtual machines that share multiple instances of
guest operating systems. A hypervisor acts as the interface between
either the underlying hardware and operating system or
just the underlying hardware. The type one hypervisor is a bare
metal hypervisor that runs directly on the hardware. Multiple virtual machines running
on the hypervisor can be running various operating systems. This type of system has been in
use since the mainframe days. The type two hypervisor runs on top
of the operating system that is running on the hardware platform. This is often known as
a hosted hypervisor. A virtual machine is an asset that should
be controlled through asset management. This will ensure a secure
baseline configuration for the virtual machines that
can be used to launch them. The security issues related to
virtual machines ensure control over the configuration and
use, secure operation, and ensure that the hypervisor is patched. It presents a new attack surface for
those who wish to compromise the system. The use of virtual machines is
a core component of cloud computing. At the risk of hypersimplifying,
a container is a file structure that contains a virtualized
environment along with the information needed by the host hypervisor to load and
supervise its execution. There are over 30 different ways of
containerizing virtual machines and applications in recent studies, and
not all of them collaborate well. Strictly speaking, the details of these
many different approaches are not what most security professionals
need to focus on. Securing containers is essentially
securing a software supply chain. It focuses on securing every step of
container request, design, build, storage, or provision in a resource library, and
then provide it to authorized users. Container security also needs to focus on
how containers are purged from the host systems after their execution
has been terminated. At every step of the process, the same
questions must be asked as you would ask about the production
software environment itself. Who can make changes? How can we validate those changes
were implemented correctly? How can we detect unauthorized attempts
to change one or more containers? How do we control access and
use of containers? How do we inventory our containers.